<?php

class Search extends Module{

	public function __construct(){
		$this->author = "Tomáš Voslař";
		$this->name = "Search";
		$this->presenter = "Search";
		$this->version = "1.0";
		$this->params = "q";
	}

	public function getSql(){
			
		dibi::query("CREATE TABLE IF NOT EXISTS `srcms_search` (
  				`id_search` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  				`id_module` mediumint(8) unsigned NOT NULL,
  				`data` text NOT NULL,
  				PRIMARY KEY (`id_search`)
				) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=0;
				");
			
	}

}

?>
